<?php
class misc{
	public static function strcut($str,$length){
		if(strlen($str) > $length - 4){
			$str = substr($str,0,$length - 4);
			$str .= "...";
		}
		return $str;
	}
}
?>